the patch file is not up-to-date and not for 1.2.7a a variable NETFILTER_VERSION is replaced by IPTABLES_VERSION please update the patch accordingly.
I can't seem to find this change in the patch file, could you be more specific please.
The iptables 1.2.7a use IPTABLES_VERSION rather then NETFILTER_VERSION in >= 1.2.6a. please update the IMQ patch to use IPTABLES_VERSION instead of NETFILTER_VERSION.
Fixed, thanks for finding this!