Fix ompilation issues on MacOS.