Drop some upstream patches. Rebase some other patches. Use new --with-posix-shell configure option rather than patching shebang on scripts.