Added shim to support lua 5.1