Revert to XCode 5; fix warnings