qmlpuppet: Fix compilation on Mac using Qt4

Change-Id: I4b043f8e08e3dcbcd70d4f10b5401186020e8734
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>