Added fsync option and debian patches
added fsync option from Christoph-D and debian patches