Support for Lua 5.2

Should work also with old swig versions