Optimize the kernel

this includes:
graphite, -O3, more specific cflags, and GCC 4.9 ready