WIP: Fix writing to syslog

/cc @nightlyone