Makefile changes to fix cross-compiling.

Relaxed cross-compiler name to only require the substring "mingw" in it.
Fixed W32 linker variable name, so it actually is used.