@LargeVirus(View Post) do you have a file called C:/MinGW/include/pthread.h ? This is the file that you need. The MinGW installer is sort of weird now, so you may need to restart the "MinGW Installation Manager" and find it in there.
For me it's called mingw32-pthreads-w32 (only the dev version of this package is needed)