install zlib-1.2.7
install openssl-1.0.1e
build by:
$ ./Configure -I/mingw64/include -L/mingw64/lib --openssldir=/ssl mingw64
$ sed -i -e 's/\/ssl\/lib\/engines/\/lib64\/engines/' crypto/opensslconf.h include/openssl/opensslconf.h
$ make