Fix non-aot support for gsharedvt.