[PATCH 2/8] loader: use sysctl instead of /proc/curproc/file on FreeBSD