Convert to CMake, move src files up