Move MPI check to global CMake