Add CompilerMode to Cc and Ghc builders.

Authored by snowleopard on Apr 14 2016, 8:23 PM.