Fix LuaJIT compatability