use dirent.h instead of deprecated sys/dir.h
tilda currently includes sys/dir.h, but this header is scheduled for removal.
Its successor is dirent.h. Update this port accordingly.
Poudriere build run with Freebsd 11 and 12
PR: 238695
Submitted by: rene