Fix AMD support. Fixes #6.