avoid duplicate defines in moc call

Change-Id: If0494d2e2bd1f4bc6deff9491bca1a1e84665b41
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>