configure: Fix check for net/if.h on macOS 10.5