Fixed compilation error on Windows (MSVC) in XmlFormatter.h

ctime_r() function used to format date in output Xml is not available on Windows. The fix allows the date to be formatted both on Windows and on *nix.