Put the #ifdef __GHCJS__ back in for now as it is still needed for template haskell