Actual fix for logging with LuaJIT