fix two annoying sign comparison warnings on older compilers