It is rather save to `#include "mpi.h"` above all c++ standard libs since there is sometimes a crazy makro defined in some of the output libraries (iostream or similar) that messes up with mpi.

To be save, please move the MPI include just above them.