Robustify Linux kernel headers configure checks