Replace deprecated identifiers

Xcode 6 was unhappy before this change.
Something along the lines:

```obj-c
#if defined(__IPHONE_8_0) || defined(__MAC_10_10)
```