Added support for MinGW.