Added missing include for <sys/select.h>.