Patch to use select() when poll() not available in spam.c.