Fix compilation on MACOS.