Replaced CMakeLists.txt with PROJ.lua for the buildtool.
Fix compiler warnings.