Fix macosx build.