Optimize preprocessor directives on Solaris for uv__tcp_keepalive

Reduce the amount of code being compiled and trim trailing whitespace in passing.