[CMake] Fix debug compile flags for gcc