[GHC] #13497: GHC does not use select()/poll() correctly on non-Linux platforms