Fixing compilation on MacOS