Fix to strip trailing whitespace from all lines
net/tcpclient.cc: Use POSIX O_NONBLOCK in preference to O_NDELAY
which has different semantics on BSD and System V.
common/safesyssocket.h: Include safeerrno.h when we use errno.
docs/cgiparams.rst: Improve wording of docs for SORT parameter.