Removed ncurses as a global linker option, added it to linux-ish targets. Fixes windows builds.
Relaxed cross-compiler name to only require the substring "mingw" in it.
Fixed W32 linker variable name, so it actually is used.