Make mac compatible