Patch from cjwatson at debian.org via bz#2767.
Move implementations of err.h replacement functions into their own file in the libopenbsd-compat so we can use them in kexfuzz.c too. ok djm@