missing setmode binary on cout