Fix compilation when using stock proftpd-1.3.4b.  Also avoid using
struct dirent.d_namlen, as it is not universally supported.