Mac OS X Makefile

These are the changes that you need to use the Makefile on OSX