compiles with lua5.2 (without LUA_COMPAT)

also keeps global namespace clean when compiled against lua5.2 (according to 5.2 guidelines)