[JENKINS-11799] improve warning category for gcc 4.6 or later

I've implemented classification of warnings produced by gcc 4.6 or later.
(also includes fix to pass unittest on windows)