fix copydir windows compilation