build: Fix compilation with Clang64 on MSYS2 Avoid using pthread_windows, WIL and D3D libraries when compiling on this environment.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2415>
authored by