Fixing compilation

Windows has no <sys/select.h>.
Merge pull request #1276 from cduclos/call-collect-agent

Fixing compilation