Create libmysql.a using dlltool.exe on mingw64

~~I have no idea if this will work.~~ It works! See #469.
Yes, you're right. Appveyor is Windows Server 2012, which only comes in x64. Why do they even have an x86 platform option!?