export xz function + add libprotobuf