Check for <sys/socket.h> in configure.

Avoids redefinition of SHUT_* constants in config.h fragment provided
by AX_PLATFORM.