Remove unused and deprecated sys_nerr declarations