The wasm dyld script used to only run in node and directly uses
setImmediate in globalThis. In case of browsers, it needs to import
setImmediate from the prelude, hence this commit.
(cherry picked from commit 9a697181)
(cherry picked from commit 5f261dcd)