bugfixes and cmake config file for tinyxml.