Preparation of heterocyclo-fused pyrazoles as protein kinase inhibitors