fix warnigns on windows

@mortenvp how come we never use size_t?