sock.c: removed unused funtion lookup_domain()
sock.c: removed unused variable
reqs.c: removed warning when compiled without filtering support
cmake: search for string.h/strings.h