SDK compatibility

Instead of doing numeric search on the device version string as I've seen in a few projects, use `NSFoundationVersionNumber`.