Replace deprecated gestalt with NSProcessInfo operationSystemVersion when available.