unzip: fix configure script when using clang 16
Clang 16 makes implicit int and function declarations an error by
default in any mode except for C89. The configure script has two of
these that cause it to misdetect features when using Clang 16.
* Implicit `int main` in the errno check. This is fixed by adding the
missing `int`.
* Implicit definitions of `opendir` and `closedir`. These are fixed by
including the required headers.