support shared libraries with GHCJS