build: ensure tools are built before building the toolchain