state_diagrams: use get_definition(), makes code simpler a bit
Add `make diagrams` command

* Added passing all kinds of compiler flags to libclang
* Now prints all errors and warnings supplied by clang
* This makes graphs more full