Add initial AMD define wrap support