Don't include -lpthread in mingw build. win32/pthreads is being used.