Add special case for mingw when conf code coverage
Simplify code for MSVC
Remove usage of user-def lit.