configure: check for pthreads building on windows with gcc

Change-Id: I737361fa9911c11017af971a80c2ffad20b01d03
diff --git a/build/make/configure.sh b/build/make/configure.sh
index e5166f8..26eb864 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1143,7 +1143,7 @@
     # Almost every platform uses pthreads.
     if enabled multithread; then
         case ${toolchain} in
-            *-win*);;
+            *-win*-vs*);;
             *-android-gcc);;
             *) check_header pthread.h && add_extralibs -lpthread
         esac