fix some unsigned/signed comparison warnings