Replace deprecated identifiers

Xcode 6 was unhappy before this change.
We could also add it by `#ifdef` checking if we're building against iOS 8 SDK.

Even when Xcode 6 is released it won't be immediately required to submit using with it to the AppStore, so for some time both lines should exists.