Fix compiler error on Xcode 6

Only set the compatibility alias for XCTextExpectation when not using
the iOS 8 SDK