Modified Makefiles to build on Mac.