Replace std::cout and std::cerr by Glay writers.