delete dead code
netbsd needs to use syscall for getdents - getting wrong size