Fixed luagen build on OS X
Merge pull request #1367 from rgngl/luagenOSXfix

Fixed luagen build on OS X