Add back errno_to_qstring() implementation with tests.
Fix some files depending on errno, but not including errno.h