generic script for building clang