Making ostream non-copyable