Use cmake's MAKE_C_IDENTIFIER.