Add support for AsynFile and AsyncPipe under Windows.

Added support for AsyncFile and AsyncPipe under Windows. This is
rather tricky, and for now should be considered not (very) stable.
Hopefully others will find these useful and test.