Tools fix for flash target when compiling on windows