make sure the cmake build type overwwrites any default it has set.
build static, also set tinyxml variables with lower case to match the xxx_FOUND symbol.