patched makefiles for Mac OS X