Thienopyrimidine and pyrazolopyrimidine compounds and their use as mtor kinase and pi3 kinase inhibitors