firmware-utils: mkfwimage: enable extra compiler checks and fix them