graphviz: define librsvg as optional

Closes #26594.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>