Lua 5.2 compile fix