Try to find matching version for mkspec. Rubber-stamped-by: Joerg Bornemann <qtc-committer@nokia.com>