All pkg-config --cflags and --libs invocations need an additional --static
on Windows/MinGW. As cmake runs pkg-config both, with and without the
--static option, and stores the results with --static in *_STATIC_*
variables, we simply use those variables instead of the usual ones.