Fix compilation on macosx.