windows: set DCB flags, purge/clear device on open, flush on write