configure: Add macros to check for #include_next and add a workaround.