Use kqueue instead of select for supporting platforms (FreeBSD)