[Fea] Debug build option added  to cmake
[Fix] small changes for build type Debug on Linux/GCC