rm -lpthread unless CC is gcc