Only build the dirsort module if we have the dirfd function