This commit is based lzma2 9.22 beta.
Merge branch 'lzma-sdk' of https://github.com/modern-7zip/liblzma2 into lzma-sdk