Consolidate zlib and lzma detection Don't depend on a global variable for flag backup. Now the blocks can be moved freely around.