msvc bugfix: fixing a bug related to save_index and config cache that cause wesnoth to crash if compiled with visual studio.