Add AMD define if in an AMD environment
Merge pull request #348 from phated/master

Add AMD define if in an AMD environment