fix SHUT_WR typo in sys/socket.h and duplicate definitions of SHUT_*