make configuration of tbb, libxc, tcmalloc automatic