Switch from getdtablesize(3) to sysconf(3).