Bug 909005: use getdents() on OpenBSD now that it is available r=glandium