Fix the compilation on MacOS