fix the mac build