Change int to NSInteger to fix warnings.
Update build settings for Xcode 4.6