Support building on freebsd variants

This is exactly the same as the other signal wrappers for other
arch/os support.