-Fix compilation under FreeBSD
-Handle sysconf() error