compile and debug BSBI_Index::make_temp_indexes, Helpers functions