Winds of stars and exoplanets