posix: added scandir definition to sys/dirent.h; it exists in our libc (but never got added to the header)