Fix compilation on BSD (and possibly MacOSX).