Added missing license headers + minor fix in CMakeLists