fix build for Mac