Update for iOS 8 SDK to supress compiler warnings due to deprecations