Log to stderr by default

A possible fix for #2291.