lua52 fix
Merge pull request #1056 from crunchiness/master

Fixed interface for Lua 5.2