Fix MinGW build

No reason mingw must be using pthreads either...