Added compatibility functions to Lua.5.2.2