Fixes #1276: make :warning and :error messages log to stderr

Fixes #1276