Zlib can handle both zip and gzip files, but the library only handles files, not archives. If you want to be able to use zlib to handle archives you need to use minizip in the contrib/minizip folder in the zlib distribution. It comes with 2 example programs minizip, and miniunz.
Don't use wxWidgets here if you have to, it would be way to big for a server.