Use a raw_fd_ostream instead of a std::ofstream.