Matlab support mingw. 3, while R2017a and prior support MinGW 4.
Matlab support mingw. MATLAB only supports specific versions of MinGW.