Adding syslog_r support