Fix MinGW build

I was fairly sure that in order to use C++11 threading you must be using the pthread runtime (as of now, at least), but this may not be the case with newer win32 threading runtimes. I guess this needs more research.