Fix build on OS X

Change-Id: I753e8d57d4bcf205d83850b440f015743719d409
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>