switch back to POSIX implementation of file write on Windows because I am not able to write an implementation that is able to write files as they are (not replacing LF with CR LF)