zlib: part 2

rebase this imminently. Only pushing before squashing because I’m lazy.