Update closefrom() function Import from sudo. Adapt the build system to detect the required features.