Kurt Waldheim, who served as UN secretary-general in 1972-81, later became Austria's president but his UN legacy was overshadowed by revelations that he served in a German unit linked to atrocities in World War II.