Add compile option for 2.x kernels