meson: Fix build with MSVC

Check compiler options with cc.get_supported_arguments().

Fixes #842
diff --git a/meson.build b/meson.build
index 210999b..fdb1ea9 100644
--- a/meson.build
+++ b/meson.build
@@ -76,7 +76,7 @@
     '-Wno-format-extra-args',
     '-Wno-array-bounds',
 ]
-
+global_args = cc.get_supported_arguments(global_args)
 add_project_arguments(global_args, language: 'c')
 
 # options