compile error in stack ostream fixed