Fixed quotes for flags and use -O1 for glibc if -O0 is given

Glibc can not be compiled with -O0, since it relies on function
inlining.