Fixed compilation errorr while compiling with HDF5.
Fix fieldml session not cleaning up global xml error messages causing successive reading not possible once a fieldml document error has been encountered.