Fix compiling on FreeBSD.  Resolves issue #112.