build-with-clang improvements