GNU libc/Linux compatibility

- `__dead` compiler directive.
- strlcpy(3) from OpenBSD.
- reallocarray(3) from OpenBSD.

This commit also starts using `config.h` in all files, which steers the
compatibility.