Fix -Wsign-compare warnings.