Fix linking to zlib on Linux