The ompt.h file is generated from the OpenMP spec to ensure that the interface is implemented as specified.
The other changes are necessary to update the interface implementation to the final version as published in 5.0.
@AndreyChurbanov for the implicit-task callbacks I'm not sure in which cases an initial task in a teams construct might pass the branch and how to identify the initial task.
Patch partially perpared by @sconvent