Need to set MSYSTEM=MINGW32 environment variable.

Default value of MSYSTEM is changed with msys2.
http://sourceforge.net/p/msys2/tickets/4/