Ellipticity effects on single and double ionization of diatomic molecules in strong laser fields