Add some compat macros from BSD.
Use more proper detection of some functions.
Avoid reallocf as it is not portable.
Add strnstr compat function.
Add some cdefs missing definitions.
Check sockaddr* struct fields.
Use libbsd if available.
Try to make libfecth more portable
Search for more libbsd headers.
Add statfs and funopen wrapper.
Build libpkg under linux.
Use sys/capsicum.h include.
Fix pkg compatibility.
More OS specific hacks.
Workaround for sysctl.
Merge branch 'linux-build'