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 91b63783e1)
91b63783e1