fix static build

Change-Id: Idd750eca86e123e01a61b68046115b54e951ae40
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>