Fix compilation on Windows and handle debugv/trace messages gracefully in the SyslogLogger.