fix configure.ac for MinGW cross compile