Fixes linking of binary. The linking will work only if zlib is specified.