Merge "libsnapshot: add compatibility check" into main