[tor-commits] [tor/master] Add some casts to get test_dir.c compiling on windows.