Add license header to CMakeLists.txt
Force functions to have C linkage