Changed the build process and parts of the XML manager.