1/ (serious) #include <config.h> needs to be replaced by #include "config.h" in several source files. The same applies to <strings.h>.
2/ #ifdef WINDOWS should be replaced by #ifdef _WIN32. With these two changes it is even possible to compile wget with MSVC[++] and Intel C[++]. :-) Jirka