Fixed C++ MPI recognition.