tor-0.2.4.22 configure static fails unless -ldl -lz after -lcrypto

./configure --enable-static-tor --with-libevent-dir=/home/cypherpunks/libevent-2.0.21-stable --enable-static-openssl --with-openssl-dir=/home/cypherpunks/openssl-1.0.1h --with-zlib-dir=/home/cypherpunks/zlib-1.2.8

fails at checking on openssl directory

If I edit configure and I replace the line 7005:

LIBS="$tor_saved_LIBS -lssl -lcrypto $TOR_LIB_GDI"

with:

LIBS="-lssl -lcrypto $TOR_LIB_GDI $tor_saved_LIBS -lz"

then configure is complete and compilation is ok.

Please fix this for the next release.