build: simplify patching