Hi, the attached patch fixes building on MinGW with "--with-threads=pthreads" Nils Durner