Add support for Lua 5.2

Please merge this commit to add support for Lua 5.2