use x86_64-w64-mingw32- prefix for tools like dlltool as necessary

This fixes architecture mismatches when cross-compiling.