Hello. Which version of Lua you are using (5.1, 5.2 or maybe luajit-2.0)? I did not find mention of it in the distribution.
i saw the usage of bit.bor in few scripts. bit module is connected separately to Lua 5.1 and built-in luajit. in Lua 5.2, he called bit32. if it turned out that you are using Lua, then i would advise to go to luajit. more it does not mean anything