modify makefile tools for osx mountain lion