Support for Lua 5.2

Add support for Lua 5.2