g2: Fix build