diff -rupN angle-8613f49/src/libEGL.gypi angle-8613f49-new/src/libEGL.gypi
--- angle-8613f49/src/libEGL.gypi	2016-02-11 20:53:41.000000000 +0100
+++ angle-8613f49-new/src/libEGL.gypi	2017-02-02 21:22:27.100335174 +0100
@@ -38,7 +38,16 @@
                 {
                     'msvs_requires_importlibrary' : 'true',
                 }],
+                ['TARGET=="win32"', {
+                    'ldflags': [ '-Wl,--out-implib,libEGL.dll.a', '../src/libEGL/libEGL_mingw32.def' ],
+                }],
+                ['TARGET=="win64"', {
+                    'ldflags': [ '-Wl,--out-implib,libEGL.dll.a', '../src/libEGL/libEGL_mingw64.def' ],
+                }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
diff -rupN angle-8613f49/src/libGLESv2.gypi angle-8613f49-new/src/libGLESv2.gypi
--- angle-8613f49/src/libGLESv2.gypi	2016-02-11 20:53:41.000000000 +0100
+++ angle-8613f49-new/src/libGLESv2.gypi	2017-02-02 21:15:08.706518770 +0100
@@ -823,7 +823,16 @@
                 {
                     'msvs_enable_winphone' : '1',
                 }],
+                ['TARGET=="win32"', {
+                    'ldflags': [ '-Wl,--out-implib,libGLESv2.dll.a', '../src/libGLESv2/libGLESv2_mingw32.def' ],
+                }],
+                ['TARGET=="win64"', {
+                    'ldflags': [ '-Wl,--out-implib,libGLESv2.dll.a', '../src/libGLESv2/libGLESv2_mingw64.def' ],
+                }],
             ],
+            'libraries': [
+                '-ldxguid -ld3d9 -lgdi32'
+            ]
         },
     ],
 }
