Fixed incorrect #ifdefs relating to xml