Fix memory leak for 7zip/xz

In stable versions of libxz, the filter options must be manually freed if the allocator is not present.
This change updates the compatibility of libxz to non-alpha versions (under 5.1) in order to avoid a leak in the lzma_filter.