add ifdef to kernel defines