Fix for MinGW builds.