Add libarchive compat definitions for 3.1.2.