Lines sent to SMTP server need to be terminated with \r\n, not \n.

Lines sent to SMTP server need \r\n, not just \n
Merge pull request #231 from ibatten/report-fix

Lines sent to SMTP server need to be terminated with \r\n, not \n.

[I see no regressions in my testing, and no regressions reported -ddpbsd]
[shared] update makefile
[shared] fix compiler warnings
[shared] add const qualifiers
[shared] add nonnull qualifiers
[shared] fix execd, due to changed function header
[shared] fix possible nullpointer dereference
[shared] fix allocator mismatches
[shared] fix dead assignments
[shared] fix possible memory leaks
[shared] revert sign change
[shared] fix windows build and windows related warnings
[shared] fix CID 28548: remove unnecessary stat() call before unlink()
[shared] fix CID 28413
[shared] fix CID 28421