Fix static linking when using libpoly2tri

Task-number: QTBUG-43006
Change-Id: I2143b815d8b597f3a02e8bd18021f6133fa9ea17
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>