fix writeLineToFd for windows console output
fix writeLineToFd for windows console output

This function now (on windows):
* converts \n to \r\n (for both file and console outputs)
* when the output is redirected to a file, uses WriteFile with utf-8 output
* when the output will appear on a console, uses WriteConsole with utf-16 output instead

ligzy/capnproto,rcrowder/capnproto,MarPiRK/capnproto,a-richardson/capnproto,geofft/capnproto,mrdomino/capnproto,modulexcite/capnproto,hntrmrrs/capnproto,jparyani/capnproto,joliss/capnproto,zarvox/capnproto,vladon/capnproto,khklau/capnproto,pjulien/capnproto,ocdtrekkie/capnproto,johnkdoe/capnproto,kamalmarhubi/capnproto,mologie/capnproto,johnkdoe/capnproto,hntrmrrs/capnproto,mrdomino/capnproto,nagyistoce/capnproto,a-richardson/capnproto,MarPiRK/capnproto,vladon/capnproto,joliss/capnproto,a-richardson/capnproto,Fraser999/capnproto,bsn069/capnproto,Fraser999/capnproto,modulexcite/capnproto,ligzy/capnproto,zarvox/capnproto,bsn069/capnproto,martindale/capnproto,joliss/capnproto,geofft/capnproto,ocdtrekkie/capnproto,khklau/capnproto,jparyani/capnproto,mologie/capnproto,mrdomino/capnproto,kamalmarhubi/capnproto,bryce-gibson/capnproto,mologie/capnproto,zarvox/capnproto,modulexcite/capnproto,rcrowder/capnproto,pjulien/capnproto,nagyistoce/capnproto,geofft/capnproto,rcrowder/capnproto,bsn069/capnproto,Fraser999/capnproto,martindale/capnproto,khklau/capnproto,ligzy/capnproto,nagyistoce/capnproto,hntrmrrs/capnproto,jparyani/capnproto,kamalmarhubi/capnproto,pjulien/capnproto,vladon/capnproto,johnkdoe/capnproto,maurer/capnproto,bryce-gibson/capnproto,bryce-gibson/capnproto,maurer/capnproto,martindale/capnproto,maurer/capnproto,ocdtrekkie/capnproto,MarPiRK/capnproto