Re #8483. Add a now-required include.
Merge branch 'bugfix/8483_api_xml_memory_leaks' into develop