A cookbook for building C++ Qgis and Qt plugins