1.adapt samples for windows
Merge pull request #20 from Narsiss/#4574

#4574:adapt samples for windows