Don’t break compilation on iPhone

Also, 10.10 SDK no longer has the deprecated version of this function so we have to test for that.

How the fuck would you do this stuff in Swift?