Updated support for LuaJIT 2 / Lua 5.1.