mac linux compatible check