Does MinGW have an fdatasync() that could be used instead, here ?