Use 'unsigned int' instead of 'uint'
The former is cross platform and makes it buildable with MSVC. As it's just a couple of places there's no need for a typedef.