Use thread-safe xerces-c initialization / termination helpers.
Merge pull request #943 from ktf/safe-xerces-cleanup

Multithreading fixes -- Use thread-safe xerces-c initialization / termination helpers.