Remove compiler warnings.

- remove warnings generated by -Wsign-compare flag.