move zlib linking to end