Be compatible with Lua 5.3
Merge pull request #303 from mpeterv/lua-53-compat

Be compatible with Lua 5.3