Fix signed-unsigned comparison warnings