build: allow running unit tests with wine when doing mingw64 builds.