Add AMD/ymodules support