Errors and warnings are printed to stderr.

Fixes https://github.com/aws/aws-cli/issues/820

cc @jamesls @danielgtaylor 
I just noticed that every usage of `uni_print` is followed by a flush of the same stream.  Why not have `uni_print` flush the fileobj before returning?