#ifdef WIN's npipe_io routine & add a debug log entry