Adapting Makefile to Mac OS X