Build-tested on x86_64 Linux & Mac.
4.6.0 fixes the build with current gcc/glibc, and libpgf was a new requirement. (cherry picked from commit 91b63783e1cd28801c69c4c28a0e320de0500787)