Fix #299
Fix compilation on OpenBSD

That OS doesn't support AI_ADDRCONFIG, but in that case we
defined HAVE_PTHREAD, but didn't add needed params to compiler

Thanks to fred for shell access for tests
Merge branch 'master' of github.com:znc/znc