mingw build fix - use win32 threads

The cmake FindThreads detects both win32 and pthreads on mingw.
It also attempts a TryRun test for pthreads which won't work with
a cross compile.
1 file changed