BUG: enable windows large file support for mingw

The (non-lfs) posix api mingw otherwise uses does not seem to work on win32.
The windows lfs functions are available in the ancient mingw32 version
we use for our windows binaries.