Add a workaround for an AOT crash in mt.