bsd: compatibility with systems that do not have interface descriptions
compat: add `strnlen()` which may be absent on some older systems