Updated NSURLSession swizzling to work with iOS 8.