Detect compiler ID and version for CMake