add externs for AMD