updates for QGIS 2.0 API, fixes #34