Fix mac build