Fix mac build error