Fix gdm 3.12 build