Fixed non-refactored code for LUA_COMPAT_MOD.
Merge pull request #14 from Mangatome/master

Fixed non-refactored code for LUA_COMPAT_MOD.