Fixed the build process on Mac OS.