Delete unnecessary files, update xdelta3 to v3.0.7 and build as static