Create libmysql.a using dlltool.exe on mingw64

~~I have no idea if this will work.~~ It works! See #469.
Fixed.