Fixed segfaults on OpenBSD.

This patch initializes the first element of the linked list of files
to point to itself. Leaving them uninitialized or pointing to NULL
will cause a segfault on OpenBSD.

Please note that I have not tested this on other BSD varieties.