Update build script to Xcode 6.1