add support for Lua 5.2

would be nice if you could tag it as v0.4 afterwards.

Thanks!