Save some basesearch dependencies and fix windows basesearch compilation
Note: mandatory check (NEED_CHECK) was skipped
@@ -453,7 +453,7 @@ typedef uLong FAR uLongf;
# define Z_HAVE_UNISTD_H
#endif
#ifndef Z_SOLO
-# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
+# if !defined(_WINDOWS) && (defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE))
# include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
# ifdef VMS
# include <unixio.h> /* for off_t */
