Upgrade Xcode project and fix type warnings.