Fix compile error
Avoid to use std::string and std::istream.