graphviz: learn python ldflags from python-config

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

Fixes #32180.