Work around broken vsnprintf implementation in mingw.

This fixes failing tests in XML::TestSaxEntityReference.
Merge pull request #993 from larskanis/fix-vasprintf-on-mingw32

Work around broken vsnprintf implementation in mingw.