Improved CmakeLists.txt for MPI.