cherryPicked from gatgui fork:
update zlib with a static version