Find tinyxml2 library and conditionally link it
Tinyxml was a hard dependency since it was linked explicitly against all programs. Acrtually it is not needed, but only activated if HAVE_TINYXML2
is set. This MR adds a find_package(tinyxml2)
call and links only if this package is found.