A compound of formula (I), wherein R3, R4, G, B, M, and Z are as defined in the claims, and pharmaceutically acceptable salts thereof are disclosed. The compounds of formula (1) possess utility as FGFR inhibitors and are useful in the treatment of a condition, where FGFR kinase inhibition is desired, such as cancer.