fixed stderr output to use printErr
Merge pull request #1406 from inolen/printerr_fixes

fixed stderr output to use printErr