configure: Check for MinGW even when cross compiling.