Fix static build, setting the XERCES_EXPORTS definition correctly and building with position independent code.