Enable dot and GUI support for doxygen.

* Add option and depends on graphviz for dot.
* Add option and depends on qt for GUI support.

Also dropped flag overriding so that the built-in flags are not dropped.