fixed symbol linking problem with using mingw dll in release build VS