This is a totally untested patch that may or may not work.
And by that I obviously mean "does not work".
I only tested on the gcc thing, and it causes an assertion error when
trying to actually write out the deltas ("corrupt packed object").
I'm sure somebody can figure it out,
Linus