How did you set MINGW_IN_SHELL and QTDIR environment variables?