The performer, closely associated with the Greenwich Village folk-rock scene, co-wrote Bette Midler’s single “(You Got to Have) Friends”