adapt to Lua 5.2
Merge pull request #9 from phi-gamma/master

adapt to Lua 5.2