Fix installer for installing in virtualenv and correct search for mingw.