Damjan Jovanovic : loader: Use sysctl instead of /proc/curproc/file on FreeBSD.