Added support for Lua 5.2

Should still work against Lua 5.1 as well.