configure: Detect mingw cross compiler in gentoo.