Fix cmake build

Fix cmake build
Fix build on windows, uint isn't a standard type, unsigned int is.