Avoid identifiers with apostrophes in CPP macros

The preprocessor of clang fails on identifiers with apostrophe
characters in macros. This is a hack to
work around this issue.