fix the build error in Xcode 6