This PR fixes the installation on windows aarch64 from here by using pkg-config to check for rtools-provided libraries/headers.
pkg-config
Let me know if I've missed anything, thanks!