Add forward declarations of ostream operators.