fix build on Mac