Fix "inifiniteLoop" test for Qt 4.

QThread::sleep() is protected there.

Change-Id: If7b6dbabd594c0a0eaf4ea2b7c691c7e9c00c55a
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
fix collecting defines in moc.js

We cannot call the moduleProperties function to retrieve
cpp.platformDefines and cpp.compilerDefines because it
combines all found values of this property. We're only
interested in the values that are set in the product's
instance of the cpp module.

Task-number: QBS-539
Change-Id: I2edbbf44b2cbc3051a0f0abec42d5d385fbb106e
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>