set Qt.core.frameworkBuild only if needed

Change-Id: Iceddd57c82269f4bde1643c6c2f9a3aab164fd47
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>