Use little-endian unsigned 32-bit ints in output format.

Right now native ints are written included in the compressed output, which means it isn't portable across systems with different endianness or different int size.  This patch should (I can't really test, since all my systems are little-endian with 4-byte ints) resolve that.