errx compatiblity

Reactivation of errx in dfu-util/portable.h
Refactoring of errx methods in custom objects