Improving build issues.

Now doing a better way of linking with MPI. Also have a top-level
CMakeLists.txt so I don't have to build each package individually.