Fix rsync patch, fix window position under Microsoft Windows