@jK: That's not my understanding of the situation
AFAIK the original 7-zip dev(s) were win-centric and GUI oriented. "lzma utils" was a fork to remedy this by moving to a posix codebase. The "lzma utils" was not stopped or abandoned, it evolved/became "xz utils" which added a new archive format "xz" and tools but still contains the "lzma utils" and libraries (ie, it installs liblzma, lzma, lzcat, lzgrep, etc as well as xzcat, xzgrep, etc). I can't think of any reason why the "lz" parts wouldn't be compatible with existing 7z archives. It basically says all that on the xz site and most of the tools are sym.
Now I can't guarantee the lzma tools are 7-zip compatible. All I know is xz/lzma tools use the same underlying library and the lzma / xz manpage says: "lzma is equivalent to xz --format=lzma" and "The native file format is the .xz format, but the legacy .lzma format used by LZMA Utils and raw compressed streams with no container format headers are also supported." also
this link seems to use the terms LZMA and 7-zip interchangeably.
@hoijoi, It's highly probable that linking to the "xz utils" version of liblzma.so gives you LZMA2 support "out of the box" with minimal code changes. It sounds like most details of LZMA2 are internal. Wikipedia simply says: "LZMA2 - modified version of LZMA providing better multithreading support and less expansion of incompressible data ... Compared to LZMA1, LZMA2 adds support for LZMA_SYNC_FLUSH, uncompressed chunks (smaller expansion when trying to compress uncompressible data), possibility to change lc/lp/pb in the middle of encoding, and some other internal improvements."