Enable WASM AOT option in build and update MonoAOTCompiler (#44468)
Allows creating AOT images for WASM with the AOT compiler and consuming them in the runtime.
Use `make build AOT=1` in `src/mono/netcore/sample/wasm/console` to try it out.
--
Also fix a regression in aot-compiler.c regarding SPC->corlib assembly name:
In https://github.com/dotnet/runtime/commit/
035ebeab160b9a281e5fbb3fa0c237f244c81b7a we added a simplified prefix for symbol names in System.Private.CoreLib.
However this shouldn't happen for the actual assembly name otherwise we aren't able to find the AOT module linked statically into the binary.