[C] Small warning fixes, add CTest support.
[C] Remove SConstruct, build is CMake based now.