Revert "ignore SIGPIPE (fix #17)" since the bevaviour of signal(3) is unspecified under a multithreaded environment.

This reverts commit eab87df13d0d740b2a9e45b8fc3db161558acde2.
ignore SIGPIPE using sigaction
Merge branch 'kazuho/issues/17' (rework)