Create libmysql.a using dlltool.exe on mingw64

~~I have no idea if this will work.~~ It works! See #469.
Please change it to `MinGW` (as the proper name of the compiler version).