Works both with FreeBSD and DragonFly
Fix previous commit
Merge branch 'compat'

Conflicts:
	xonar.c

Compatibility with FreeBSD