build: kernel: add some optimization flags