Include missing kmp_config.h in the ompt-general.c file. If the file is not included, the inclusion of ompt-event-specific.h (through ompt-internal.h) does not inherit neither OMPT_TRACE nor OMPT_BLAME.
UPDATE: I have updated the title to what seems to be more appropriate according to John's comments.