build: make linux/if_packet.h usage optional
Check for presence of linux/if_packet.h in configure and
guard its usage with HAVE_LINUX_IF_PACKET_H.
This avoids build failures on non-Linux platforms or
environments where the header is unavailable.
Change-Id: I8a02b0676e65fa4b6191073c84e0646a2e67a010