Support building on freebsd variants

This is exactly the same as the other signal wrappers for other
arch/os support.
Merge pull request #786 from davidreuss/dev

Support building on freebsd variants