Fix warnings

Some sign-compare fixes.