Fix compilation in 32 bit mode.

NSUInteger is an unsigned int in 32 bit mode, but an unsigned long in 64 bit mode. Commit aec3dbb5fa1baffa800df6b6e84dfb227f6a0ec7 switched %d to %ld, fixing the compile for 64 bits and breaking it for 32. This change makes it compile everywhere.