Don't compile emulate_poll_with_select() unless we need to.

This shuts up a clang warning, which complains about an unused function
despite the fact that it is flagged "inline".