Fix AMD dependancies for extrnal projects.