Add loggregator support and modify cc bug.