Lua5.2 compatibility