Add method Compat::syncFile().