Add a syslog related fix from upstream. Reminded by Tiago Cunha, who sent me an update diff a few days ago.