This reverts commit d5d683a9. --disable-pthreads can be used to disable pthreads and get the threaded resolver to use the windows threading when building with mingw.