Use two cabal files webkit-javascriptcore.cabal and webkit3-javascriptcore.cabal.  Move includes into hsjscore.h to avoid the UName problem (issue #1 on github).