patched makefile for Mac OS X