Support MinGW-w64 11.0 winpthreads library (#12231)
MinGW-w64 release 11.0 introduced a `WINPTHREADS_USE_DLLIMPORT` macro to
explicitly ask for the `dllimport` attribute to be set on all symbols.
`DLL_EXPORT` has that same effect on previous versions of MinGW-w64, they
can be both enabled to support all versions.
Commit introducing the `WINPTHREADS_USE_DLLIMPORT` macro:
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/489520900fb6853c8be97e9d0214f39a77c846d9/
Co-authored-by: David Allsopp <david.allsopp@metastack.com>
authored by