Print warnings to stderr.
Merge pull request #2009 from dcjones/master

Print warnings to stderr.