Lib: Fix  Fix signed/unsigned comparison warninngs.