buildsystem: rework patching. prepare to remove patches.upstream/