It is a known problem and probably due to an operation libstdc++ does when
std::thread is used that winpthreads doesn't like but should allow. I don't
know how to fix this, sorry. Maybe Kai or JonY have more ideas on the

Hi Ruben!

Tell me, if I use pthread-win32 instead winpthreads would it solve this problem?
Or, maybe You know how to build mingw with "--enable-static --enable-shared" using winpthread just as a static library?