add istream and ostream type definitions