scope: Don't depend on Geany private prototypes

This fixes build with latest Geany development version as it now hides
most internals behind GEANY_PRIVATE, including non-public prototypes.