Fixing compilation issues on Mac.