3.12: add some patches for upstream-fixed issues

farstream and libpwquality each have FreeBSD build issues fixed upstream
but no signs of a tarball any time soon.  Take those patches locally
until the next releases.