Use poll() on everything but windows machines so that large file
descriptors don't crash the interpreter, and will also work.

Issue #23