Generalize buildtools initialization.