Avoid using `sys/dir.h' to make the port look less abandonware.
Obtained from: games/netradiant (r504802)