_err_stream should be ostream not ofstream