fix building in Xcode 6