It says more about the modules, and not about libpq. Using gendef.pl for this library in the light of the development of my CMake build seems silly.
For what it's worth I personally agree. I'd rather have PGDLLEXPORT used directly, not least because it'd let us built with -fvisibility=hidden under *nix. But I'm in the minority and not inclined to push the point.