Marmalade tinyxml2 fixes

Add some marmalade fixes for tinyxml2.