Fixed typot that broke getPolygon
applied http://hub.qgis.org/attachments/4385/qgslabel.cpp.patch
finished replacing pointer dereferencing with memcpy, partly based on http://hub.qgis.org/attachments/4411/qgsgeometry.cpp.patch2