Complete Makefile and dependencies for Mac OS X