Lua 5.1 (luajit) compatability

Just so luajit can work with this package. All tests pass. luajit is too awesome not to make these tiny changes.