Patches for QTiles to works with current QGIS 1.9.0-master

Small fixes which allow QTiles to work with the current QGIS 1.9.0-master.