#4574:adapt samples for windows