make sure to include syslog.h