Adapt to freebsd.