add xcode6 compatibility