Fix iOS 8.0 support code