fix debug building on windows