handle case where Lua was loaded instead of LuaJIT