Remove dependency on detection of HAVE_DIRFD for use of fdopendir().