fixed addwindowoverlay and replaced XmlNode lib with the newer XmlDocument lib