SERVER-1153: hack index linking to make unit testing heap possible
SERVER-13635: fix repair on windows