Upgrade project setting for latest Xcode.
Some clean ups: fix syntax, update deprecated calls.