Fix static build

Task-number: QTBUG-39962
Change-Id: I58b4bb6e8a1abeceebabe559ac16a40ae29f7d15
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>