Create libmysql.a using dlltool.exe on mingw64

~~I have no idea if this will work.~~ It works! See #469.
Here's an interesting failure: https://ci.appveyor.com/project/sodabrew/mysql2/build/91/job/x8g54d9p13ttpm8i
Have you seen this before?