mingw: avoid using strbuf in syslog