Fixed: Emscripten unload listener moved to separate file

Reordered build script so that the proxy code was added to both and then only the unload listener (in a separate file) was added to the non-webworker version.