mingw thread fixes
gcc wants std not stdlib