build dynamically linked ghcjs