Working Build System

CMake now compiles the project properly.