fix configure.ac for msys+mingw environment