Cleanup of compilation flags for gcc and clang

o no-schedule-insns, no-inline  is not needed at O0
o remove O2 optimisation for debug builds
Cleanup of compilation flags for gcc and clang

o no-schedule-insns, no-inline  is not needed at O0