[autotools,bugfix] Generate configuration files for finding installed autotools module with CMake.
[bugfix] Fixes the order of the flags.

Due to the wrong order of the libraries linking failed when using
static libraries.
Fixes required typetree version.

Version of typetree got bumped up to 2.3. This patch reflects this
in the requirements to make the stricter version checking of DUNE's
cmake happy.
Fixes variable substitution in config.h.cmake