Add definitions for building on openbsd & freebsd