[#1012] Replace forked jzlib with official jzlib and add a test.