libconnect: lib/platform/sys_nt.c: dev_write() (re)implementation