Optimize kernel (-O3 and graphite)

Change-Id: I0bb52feeec0db86ca1cddf82aabd727fa77acfc6
fix build kernel with GCC 4.9

Change-Id: I02de1e19f8fc8cac237ba929b5b656130ad29708