std.compress.flate.Compress nontermination

@jpsecher This backport solution works for me, so it might be worth trying as a workaround.