ifdef out Unix-only output redirect function on Windows