save space during build and reduce cartridge size

These changes reduce the amount of space needed during cartridge build
and also reduce the size of the cartridge itself.

I have been working with a the "quick" build flavour of GHC and it seems that
I will be able to quite comfortably get framework cartridges in under 1G, but
I haven't tried with the "default" centos65 distribution yet.