(MINGW) more rewrite try to fix compil without using posix thread