fix so it compiles on FreeBSD

FreeBSD needs cflags -I/usr/local/include, and -L/usr/local/lib to find includes and libraries installed by ports (pcre, unbound, libev etc).

In addition, on FreeBSD, addr.sun_path is only 104 bytes long on FreeBSD.  Fixed with ifdef.