tools: Remove invalid cpp characters from the header guards.

The waf converter in examples-v2 uses an absolute path and this
creates defines with invalid characters.