updated Makefiles for OS X compilation with clang/clang++