Add blocklist_open2() that can pass a custom logger or NULL for no logging.Switch internally to use syslog_r. Add compatibility for systems that don'thave syslog_r.
Import blocklist from https://github.com/zoulasc/blocklist.This is the same code as blacklist from the HEAD of the NetBSD tree.