configure: remove mingw conditions, replace one gcc with $CC.