fix XCode 6 beta 4 build error