Adapt Debian patches