Mac OS X needs sys/select.h for select().
Add possibly missing IN macros.