Changes for getting QGIS build with MinGW.