64-bit mingw not define _FILE_OFFSET_BITS=64 default.
This is fine I think, although I haven't tested it myself.