Preparation of heterobicyclic pyrazole derivatives as kinase inhibitors