Fixed #755: fixed build on xcode6 with iOS8 SDK