Portability fix: 'uint' is nonstandard.

Always use ```unsigned int``` instead. ```uint``` gives compile failure on Mac OS X.