Add configure checks for sys/socket.h