Fix for compiling in D3D9 mode on mingw-w64.