Correction for windows warnings
Correction for one windows bug (uninitialised counter)