If dev-lang/luajit is present, roccat-tools link against it even though it should, according to the dependency list, link against dev-lang/lua (:0 or :5.1) instead. The culprit here is line 39 of the upstream-provided CMake module FindLUA.cmake, which causes it to prefer LuaJIT over PUC Lua.