improve configure.ac: add check code for header/lib/module.

add check code for pthread_create when --enable-thread is used.
add check for module libnetfilter_queue or check header for linux/netlink.h linux/netfilter_ipv4.h linux/netfilter_ipv4/ip_queue.h, passing the configure and run make then found needed to install module netfilter or can't found the header is feel not good.

thank you!