Temporary fix for static build issues on Mac.

This will be properly done when QTBUG-37638 is fixed.

Change-Id: Ia58bacaf9876933555b7f91a91542997be1209c5
Reviewed-by: Kai Koehne <kai.koehne@digia.com>