Fixes CMakeLists.txt and file inclusions.

So it builds now.