change Makefile to use clang and fix minor error