Remove gcc 12 warnings
In gcc v12 and v13 the compilation throws these warnings:
warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
Added -O compiler flags in CMakeLists.txt
Added also -ggdb and -fopenmp flags controlled by -DCMAKE_BUILD_TYPE=Debug and -DOPENMP