Fix some build errors when no MPI present