Add AMD support
Merge pull request #130 from jasontbradshaw/master

Add AMD support