Refactored to separate out cc and cxx compilers.