cmake: Avoid pkg-config on Windows.
pkg-config is not very reliable for Windows. In particular, when doing MinGW cross compilation pkg-config will mistakenly pickup the host headers, regardless MinGW has those headers or not.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
pkg-config is not very reliable for Windows. In particular, when doing MinGW cross compilation pkg-config will mistakenly pickup the host headers, regardless MinGW has those headers or not.