Adapt Qbs profile generation to recent changes in Qbs

* targetOS for mac is "osx"
* targetOS and toolchain are lists

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