Compounds of Formula I: in which A, B, R1, R1a, R2, R3, R4, R5 R6, R7 and R8 have the meanings given in the specification, are receptor tyrosine inhibitors useful in the treatment of diseases mediated by class 3 and class 5 receptor tyrosine kinases. Particular compounds of this invention have also been found to be inhibitors of Pim-1.