Made this build work on a mac. It uses a build script instead of a makefile.