fixing CMake to work out of the box for both LuaJIT and vanilla lua