fixes stacktrace generation on windows