Fixed the compilation process for MacOSX.