Use os_version to determine whether to use CoreLocation or not.