examples: make macfunctions build again

Task-number: QTBUG-34031
Change-Id: I959596206c8090f2bc38bba05a27678471c07480
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>