Fix compilation on Linux x86_64.

There are still a couple of signed vs. unsigned warnings, but trying to implicitly convert from `size_t` (which is `long unsigned int` on this platform) to `unsigned int` is an error.