Fix compilation on MacOSX.