Cleanup of compilation flags for gcc and clang

o no-schedule-insns, no-inline  is not needed at O0
Use -Wno-deprecated-declarations also for clang builds