add Debian patch file, some minor changes