Fixes CMakeLists.txt and file inclusions.

It finally builds.