Add missing patches and rules.