Fix invalid-read when a managed proxy configuration fails.
Merge remote-tracking branch 'origin/maint-0.2.4'
Fix compilation on Windows

(Bugfix on tests for #9288 fix; bug not in any released Tor)