AMD builds working. Fixes #409