Adapt code for windows part1

Signed-off-by: YohannL <yohann.lemoine.enst@gmail.com>
Adapt code for windows part1.1

Signed-off-by: YohannL <yohann.lemoine.enst@gmail.com>
Adapt for windows pt 2

Signed-off-by: YohannL <yohann.lemoine.enst@gmail.com>