Addresses https://sourceforge.net/p/mingw-w64/bugs/360/ Change-Id: Ida4d2da450b8f935bb1953cf0c76b06631153dc2