Moved CodeCoverage into a separate cmake condition.

This mainly allows non-MSVC windows builds.