patch 8.0.1586: imactivatefunc does not work on non-GUI Mac

Problem:    Imactivatefunc does not work on non-GUI Mac.
Solution:   Fix logic in #ifdef.
diff --git a/src/version.c b/src/version.c
index a4fd2e6..128be31 100644
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1586,
+/**/
     1585,
 /**/
     1584,