fix so it compiles on FreeBSD
Merge pull request #7 from mschout/freebsd

fix so it compiles on FreeBSD