Fix size_t -> uint warnings with MSVC 64-bit build