FD_SETSIZE hack for Linux

This is only for Linux. Will look for ways to make this work on BSD and
Darwin too.