Added header check for sys/select.h and sys/socket.h