Add AMD support. Fixes #129.