Changed: use FlushFileBuffers directly in .NET