mingw thread fixes
gcc wants std not stdlib
Merge pull request #1 from dekimsey/master

merge