Modified CmakeLists.txt for MPI BAT and Ubuntu.