Improve handling of writes to dead pipes.
Fix extension portability for AIX.
Documentation updates.