Fix for broken unit test on windows.
Attempt to use c++ compiler to determine gcc version if c compiler is not available (which is unlikely). This check should be split out to be done once per tool.