Fix compilation with GRASS