REMOVE: config for term
Fix term.c for when tgetent is not available

- The term.c support for Windows is currently broken because
  some code paths in term.c should not be enabled. This commit
  brings back guards for FEAT_TERMRESPONSE (that depends on HAVE_
  TGETENT)
- Replace LOG_TR with DLOG
- vim-patch:0
Enable terminal for WIN32

- The WIN3264 define does not exist in Neovim, use
  WIN32 instead
- Set win32 as DEFAULT_TERM on Windows
Fix FindLibUV libname for MSVC
Fix FindLuaJit libname for MSVC
Fix FindPDCurses.cmake libname for MSVC
Fix declaration generation for MSVC compiler

(cherry picked from commit 276a51e9e29f5493f03038337f876ee3bdf5cb4e)
Add header guards for sys/time.h and unistd.h

- On MSVC there are no sys/time.h and unistd.h
Disable incompatible compiler flags for MSVC
Add compiler flags for MSVC
Add MSVC defines for __func__, restrict, inline
FindLibIntl: Only link iconv link Mingw
Find LibIntl for MSVC

- Use the right lib name for MSVC
- Make libintl required for MSVC
Add STDOUT_FILENO define for MSVC
FIXME: No VLA in MSVC
MSVC does not support designated union initialisers
Add MSVC cmakedefine
MSVC: define W_OK
Pack up MSVC bits in win_defs.h
Add MSVC defines for fs S_ISREG/ISDIR, S_IXUSR