small net cleanup

- add comment for disabling sigpipe
- add closing comment in compat.h
- remove redundant check in net.h
Merge pull request #4636

efd6b87 small net cleanup (Philip Kaufmann)