[Git][ghc/ghc][wip/wasm-dyld-pie] wasm: factor out nodeMain in dyld