Remove deprecated API usage

Hi

Just a few tweaks so it will work with QGIS 2.0 which has deprecated API calls removed.

Regards

Tim