fix compiling error on std::cout

a tiny fix