Replace uint with unsigned int and remove trailing spaces

MinGW doesn't include the non-standard data type uint, see http://sourceforge.net/p/mingw/bugs/1381/

I replaced uint with unsigned and also deleted trailing spaces in the affected files.