Make ints related to bitstream unsigned

This makes things work with the recent change to libgamecommon.