Change llvm::raw_fd_ostream open flags

After the changes in LLVM (c1b49b5) the open flags are unified in
llvm::sys::fs::OpenFlags, and so we make the changes accordingly.