Resolve size_t comparison warnings