Make closefds.c more portable.