Fix build failure for Xcode 6.0.1