Fix cmake for Xerces 3 (pull request #1038)