Fix test build (coverage issue) with mingw.