Fix object file writing in llvm-lto on Windows.

We were writing in text mode.

Patch by Greg Bedwell.