Add support for building with ghcjs