Check for API's existence instead of relying on version numbers

PR to get rid of version checking in a super gross way
Heh, I think you know the OS compat story better than that. If they move it for some reason, they'd add a shim as that's current behavior.