Quieten stderr output unless DEBUG_CC is set, and redirect certain compiler-wrapper subprocesses to log files. Various smaller fixes.