patch for iOS 8 SDK - builds but as yet untested