As above. The mingw-w64 runtime can produce a set of pthread dlls and import libraries
(usr/bin/libwinpthread-1.dll, usr/lib/libpthread.a, usr/lib/libpthread.dll.a, usr/lib/libwinpthread.a, and usr/lib/libwinpthread.dll.a) which can be used just like the linux ones,
whereas I have no idea where libpthreadGC2.a even comes from.