Backported Lua bit manipulation library
