Fix some signed/unsigned mismatch warnings.