fix closefrom() in portable, in the newly added fork_proc_backend()
add check for sys/cdefs.h include file, to help build on SmartOS/illumos

failed build reported by: G B <g_patrickb at yahoo dot com>