Fixed some warnings.

Can't use uint64_t as a bitfield; let's use unsigned int instead.