use sysctl to set the max file descriptors to support FreeBSD