Fix the build on mac