Lua 5.1 compatibility fix.