Fix compilation with Lua 5.1
Merge pull request #43 from rafalh/lua51-support

Fix compilation with Lua 5.1