Update to XCode 6 and fix warnings