curl-7.40.0.zip from http://curl.haxx.se/download/curl-7.40.0.zip
built using Visual Studio 2013 using the configuration 
Edit winbuild\MakefileBuild.vc and append /DUSE_SYNC_DNS to CFLAGS to disable asynchronous dns
resolution, it currently breaks everything.
nmake -f Makefile.vc mode=dll WITH_ZLIB=static GEN_PDB=yes DEBUG=no

zlib 1.2.7 from http://mirrors.kodi.tv/build-deps/sources/zlib-1.2.7.tar.gz
run cmake -G "Visual Studio 12 2013" in root dir to generate zconf.h
build with nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj" 

rename zlib.lib to zlib_a.lib for curl build to find it
place zlib files as instructed in curl build instructions.
