Replace MPI deprecated routines with undeprecated ones.