fixes for QGIS 2.0 API changes