Fixes the compiler detection for gcc when it is your default compiler
Merge pull request #1 from Roflincopter/master

Use CMAKE_C(XX)_COMPILER_ID instead of CMAKE_C(XX)_COMPILER to fix detection of compilers

Was wrong when you used symlinks like /usr/bin/c++ that actually pointed to g++, for example.