Pass -DUNICODE as a CFLAG. The visual studio project asks for a unicode (wide-string) build, but the unix makefile did not. This fixes the build on msys2.