fix buildIndexMPI.cpp

fix buildIndexMPI.cpp