syslog2stderr dynamic library

The SoftHSM library writes to the system logs. Preload this library to
make it write to stderr instead.
diff --git a/programs/Makefile b/programs/Makefile
index 443689b..163059b 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -277,6 +277,12 @@
 	echo "  CC    x509/req_app.c"
 	$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c    $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
 
+ifndef WINDOWS
+util/syslog2stderr.so: util/syslog2stderr.c
+	echo "  CC    util/syslog2stderr.c"
+	$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -ldl
+endif
+
 clean:
 ifndef WINDOWS
 	rm -f $(APPS)