Fix up some iOS 8 / Xcode 6 warnings and deprecations.