gcc doesn't know -O# for # > 3

http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

In addition the lines around the extra_compile_args are realligned to ease the
patching in downstream projects.

Signed-off-by: Justin Lecher <jlec@gentoo.org>