Fixed the build for xcode 6