lib: Update mpi to support new buffer API