Make dist + distcheck succeed in packaging.
Check more return values, and pass them to user.

Ref #1.
Document new fprintf return code handling.