Doxygen fix and DOT support added

Cool dependency graphs, yay!
partial fix to #3

The example now tries both TCP and UDP sockets, the code was modified to
use C++11 features. Ugly #ifdefs removed to start the work for #4