support GHCJS, which does not have a GHC.Event IO manager