Disable the gsharedvt optimizatiom in AOT if it is not supported by the platform.