Change ostream operators to static.