Only install g++-4.8 if building with gcc.