fix the resources copying  on windows