Fix compilation of preprocessed header for functors
The current logic to split includes in system and local ones using
generator expressions was failing when $PROJECT_SOURCE_DIR contained
regex control characters (such as + as in gcc13+dd4hep).
This bug was exposed by the folloing change in lb-stack-setup: rmatev/lb-stack-setup@0f387993