Fixes so that basic index creation (tested with hfind) works with MSVC build.