[aot] Error out if -O=gsharedvt is used on a platform/configuration where it is not supported.