Reorder installation of zlib to precede openssl

Compiling openssl fails because (apparently?) it has a dependency on zlib. How did this even work before?