[Support] Make FileOutputBuffer work on Windows.