Update build script for Xcode 6.0