Added a patch that avoids segfaults on OpenBSD's implementation of
opendir() and readdir(). This goes upstream hopefully with a discussion
on how this patch can be made to work on all platforms.