[libvirt] [PATCHv2] build: fix build on mingw with winpthreads