Standardized usage of LIBSOCKET_READ... macros

Mostly in streamclient.cpp
Using system shutdown(2) in stream_client_socket

Putting header file sys/socket.h to namespace BERKELEY.
Merge branch 'new_shutdown'