build-aux: Implement AMD API on top of Rhino.