STYLE: Add missing licenses to CMake files and other formatting fixes

Change-Id: Ib52a9133e69988f4bc635b645a3a302fb65d2b2a