Gittrac #3532:  We don't try to report metrics on Windows; various
other cleanups of the code.