CMakeLists.txt: use debug builds
handle initialization with va_start, memset, memcpy