Try to create libmysql.a using gendef and dlltool on MingW 64

I have no idea if this will work. See #469.