Fix the last bug and finally support OpenBSD
Merge pull request #92 from dc740/master

Finally fix support for OpenBSD