Fix build failures.
Fix all warnings regarding int/NSInteger and unsigned int/NSUInteger.