Handle ERROR_MORE_DATA on Windows

See issue #49 for background and discussion