Fix for compiling in D3D9 mode on mingw-w64.
Web-sync at 2014-01-29 11:25:09 +0800.