Solving portability issues for Windows
Correction of all the warnings for Windows