added fsync control (thx clemsyn, for finding the fsync-control patch)