Fixed building process on MacOSX.