[nsphere][num_points] Fix compilation errors.
[nsphere][index][rstar] Fix compilation errors.