Cast `NSUInteger` to `unsigned long` for format string

This fixes a compiler warning when targeting 32-bit platforms, where `NSUInteger` is an `unsigned int`.