Improve detection of operators ostream << and istream >>