Fix a few warning by using size_type instead of unsigned.