My own fixes to qgis