Fipped the 64bit switch, cleaned up related implicit conversion warnings/errors
Fix NSString formatting of NSInteger on 32-bit.

Fixes for 64-bit weren't backwards-compatible.