Avoid importing GHC.Event when compiler is ghcjs