Use size_t instead of uint and unsigned

Okay, I tried again.

This time, I did only the easiest part (size_t) and didn't bother with ptrdiff_t

Hope all is well.

http://www.embedded.com/electronics-blogs/programming-pointers/4026076/Why-size-t-matters