doc/examples: add -O2 in CFLAGS.