AC_FUNC_CLOSEDIR_VOID

support dependencies of headers
refactoring the tests
