fix: replace unsigned int by size_t. Needed for 64bit systems