[aot] Avoid an assert when AOTing a non-mobile mscorlib in a runtime with COM disabled.
Fix the mobile build.