Add definitions for building on openbsd & freebsd
Merge pull request #228 from Minjung/master

Add definitions for building on openbsd & freebsd