Make tests work on Mac OS X.

- Make selector use system results.
- Retry select interruptions.
- Don't notfiy handlers if no descriptors were selected.
- Accept connections from inaddr_any.