[cmake,release] Activate MPI in headercheck.

Somehow MPI was never activated for the headercheck. This patch fixes this.
(cherry picked from commit fbfa416b27175530a4de1f07e9a9e94d59dad2a9)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>