Done. When I done those changes I'm always afraid of breaking compatibiity with some architecture from the good old days. Thanks for the hint.
get rid of the 'extern sys_errlist' and 'sys_nerr' in SysErrorMsg.
Fix to delete-incomplete warnings (retry)
Fix to discarded-qualifiers compile warnings.
Fixes for a few -Wincompatible-pointer-types
Fix to delete-incomplete warnings.
Fix to compile warnings.
Fix to delete-incomplete warnings.