Fix compilation on MacOsX