patch 8.0.1785: missing symbol in Win32 small build

Problem:    Missing symbol in Win32 small build.
Solution:   Define VTERM_ANSI_INDEX_NONE without the terminal feature. Also
            fix unused function with #ifdef.
diff --git a/src/os_win32.c b/src/os_win32.c
index 8278ddd..c474415 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -7656,6 +7656,7 @@
     vtp_printf((char *)buf);
 }
 
+# ifdef FEAT_TERMGUICOLORS
     static int
 ctermtoxterm(
     int cterm)
@@ -7665,6 +7666,7 @@
     cterm_color2rgb(cterm, &r, &g, &b, &idx);
     return (((int)r << 16) | ((int)g << 8) | (int)b);
 }
+# endif
 
     static void
 set_console_color_rgb(void)