Fix samples on windows