Fix compilation with macosx gcc