build: Never use poll() on Darwin family (macOS, etc.) or Interix