Fix an import error and add color to "Build failure" warning.

It can get tedious to look through build errors and find where the new ones start and where the old ones end. Therefore, to streamline the process, "Build failure" warnings will be printed in red.