Using two environment variables CC_PRINT_INTERNAL_STAT and
CC_PRINT_INTERNAL_STAT_FILE to work like CC_PRINT_PROC_STAT.
The purpose of the change is to allow collecting the internal stats
without modifying the build scripts. Write all stats to a single file
to simplify aggregating the data.
OF_Append is necessary when the results are written to a single file specified via CC_PRINT_INTERNAL_STAT_FILE, but do we want this change for users passing -save-stats to the command line?