Write error messages to stderr instead of stdout