support for Windows flush_* methods.