This seems to be the commit that caused this:
https://github.com/postgres/postgres/commit/b6c7cfac88c47a9194d76f3d074129da3c46545a
So it seems the commit is related to static linking.
Is it somehow possible to statically link in a version of pgcommon with
correct function names into libpq?