Added fsync() emulation for Windows.