Began adding compatibilty for BSD
Going to check BSD compatibilty now.
FreeBSD is compatible, I can't check with OpenBSD as Virtualbox can't run it.
Updated configure.ac
Merge branch 'debug'

Merged BSD compatibility from debug/