Updated build to work with Xcode 6.