build: add zstd support to pack/unpack functions