Merge pull request #436 from koenpunt/stderr

redirect output of errors to stderr