makefile compatible with clang++ on OSX