cmake: Avoid overlinking with non-CMake libxml2-config.cmake Align libxml2-config.cmake generated by Autotools and Meson with the CMake version and only add dependencies to libraries when linking statically. Also set LIBXML_STATIC for static builds. Fixes #918.