Fixed MPI compilation errors