graphviz: add python lib dir to linker search path

Use python-config --ldflags to make sure the active python framework's
lib directory is in the linker search path.

Fixes #32180.