Fix warnings about compaing size_t and int.