fix compilation on OS X

Change-Id: I9e360e1b4c9e37807208aa85cb6bf4e9b7498e14
Reviewed-by: Christian Stenger <christian.stenger@digia.com>