Add support to mingw gcc under msys environment.
run autogen.sh first than configure and make.