convert makefile to use flags fro clang for mac os x