buildfix g++: add explicit conversion to ifstream->istream