Fix the build on Mac when c++11 was enabled

Task-number: QTBUG-31445

Change-Id: Iac7771f06f4a8f784c7330e299fe0bc448e45202
Reviewed-by: Alex <alexander.blasche@digia.com>