Fix the Windows build files Patches comming from KDE project for Windows portability https://projects.kde.org/projects/kdesupport/emerge/repository/revisions/master/entry/portage/testing/libxml2-test/libxml2-2.7.8-20110801.diff To build libxml2 I had to patch the build system a little bit. The windows build system tries to link about zdll, but on windows its called zlib* too, so linking against z is enough. Also the --include and the --lib command was ignored. For the http and ftp stuff linking against some windows library's was forgotten for mingw.