use AutoPtr to handle mem in poco xml objects, cut headers, re #8484