Added sysctl support for FreeBSD