+Updated to (at least) compile with Lua 5.2+