Made improvements to build files for Mac.