setup: support patching natively compiled packages

Support patching natively compiled packages.