use Dwarf info to locate global variables.

Add dumptodot which generates dot files (for input to graphviz:dot)