Fixing Mac install issues.
Had to make a couple of changes to the install process working correctly on Mac:
- Made it copy the correct library files
- Made it load libxerces-c correctly
With these changes it builds and installs cleanly in my Superbuild. These seemed like the most straightforward way to fix these issues, I can change things if theres a better way.