Add definitions for building on openbsd & freebsd

From Issue #227
Could probably add NetBSD there, but i'm not entirely sure.