Fix compilation issue for syslog