Coating compositions with anticorrosion properties