fixed openssl and zlib linking
fixed openssl ignoring LDFLAGS (what is it with all those weird build setups!)