allow compatibility with Lua 5.2
Merge remote-tracking branch 'fperrad/compat52'