Fixing compilation error on MacOS