Fix trailing commas in AMD define.