Threads are not natively supported for MinGW :( Tried to fix it. Still work to do
Merged