Fix for freebsd 8.2 compile