Write error messages to STDERR

To be able to distinguish errors in output from normal behavior, I'd like to output error messages via STDERR.