Build system fixes for FreeBSD.
Build system improvement, be friendly to clang and colorcxx.