Remove libraries in top level directory. Roughly fix up the CMakeLists.txt files.