Create libmysql.a using dlltool.exe on mingw64

~~I have no idea if this will work.~~ It works! See #469.
Why looking up in two different folders? is in vendor or is in the root of the gem? (doing `../` with dirname of `__FILE__` seems to point to the root directory of the gem.