The N-methylation can be carried out by aarious methods known per se, for example by reacting the compound of the formula (Ia) with an excess of formaldehyde and formic acid (Eschweiler-Clarke reaction) or with formaldehyde and hydrogen in the presence of an hydrogenation catalyst such as e.g. platinum or palladium.