Fix building when XML is enabled
Add error handling to LMU and LSD Writer. (LDB and LMT already had)
MSVC update