Replace slow pipe with direct memory copy for archive extraction.
Miscellaneous corrections and tweaks.