Fix the detection of the toolset name for GCC.