Lua 5.2 fixes
Merge pull request #2 from ncopa/master

Lua 5.2 fixes