Make liblogging-stdlog optional

This change add a configure flag to turn off the functionality provided by liblogging-stdlog.

I think it's usefull to have this even in v7, but can rebase the branch to master if necessary.