Added Mac OS X functionality to the Makefile